package com.mike.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mike.dao.t_empDao;
import com.mike.pojo.Page;
import com.mike.pojo.T_emp;

@Service("t_empService")
public class t_empServiceImpl implements t_empService {

	@Autowired
	private t_empDao empImpl;
	
	@Override
	public void insert(T_emp emp) {
		empImpl.insert(emp);
	}

	@Override
	public void delete(T_emp emp) {
		empImpl.delete(emp);
	}

	@Override
	public void update(T_emp emp) {
		empImpl.update(emp);
	}

	@Override
	public List<T_emp> queryByList(int page, int rows) {
		// TODO Auto-generated method stub
		return empImpl.queryByList(page, rows);
	}

	@Override
	public Page<T_emp> findByPage(int pageNo, int rows) {
		// TODO Auto-generated method stub
		return empImpl.findByPage(pageNo, rows);
	}

	@Override
	public T_emp findById(int empno) {
		// TODO Auto-generated method stub
		return empImpl.findById(empno);
	}

}
